﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="NoteSend.aspx.cs" Inherits="CRM.Web.MessagingManage.NoteSend" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/assignment.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/TreeView.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $(".cbAll").live("click", function() {
                if ($(this).children().eq(0).attr("checked") == "checked") {
                    $(".cbItem").children().each(function() {
                        $(this).attr("checked", "checked");
                    });
                }
                else {
                    $(".cbItem").children().each(function() {
                        $(this).attr("checked", false);
                    });
                }
            });

            $(".cbAllComplaintCase").live("click", function() {
                if ($(this).children().eq(0).attr("checked") == "checked") {
                    $(".cbItemComplaintCase").children().each(function() {
                        $(this).attr("checked", "checked");
                    });
                }
                else {
                    $(".cbItemComplaintCase").children().each(function() {
                        $(this).attr("checked", false);
                    });
                }
            });
        });        
    </script>    
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" >内部消息发送</asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div id="divMain" >
    <div style="width: 100%" id="tBodyMain">
        <table  cellpadding="0" cellspacing="0" style="width: 100%; border-bottom: #336699 1px solid; ">
        <tr>
            <td style="width: 20%; border-right: #336699 1px solid;  vertical-align: top; ">
                <table border="0" cellpadding="0" cellspacing="0" class="content" scrolling="auto"> 
                    <tr>
                        <td class="content" style=" width:100%; height:100%" scrolling="auto" >
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server" >
                                <ContentTemplate>
                                    <asp:TreeView ID="tvGhid" SkinId="BulletedList3" ShowCheckBoxes="All" ForeColor="Black" Font-Names="Verdana" HoverNodeStyle-Font-Underline="true" 
                                        HoverNodeStyle-ForeColor="#5555dd" SelectedNodeStyle-ForeColor="#5555dd" SelectedNodeStyle-Font-UnderLine="true" NodeStyle-HorizontalPadding="5" 
                                        ShowExpandCollapse="true" ExpandDepth="100" NodeIndent="20" Font-Size="8pt" onclick="OnTreeNodeChecked()" runat="server"/>
                                </ContentTemplate>
                            </asp:UpdatePanel>    
                        </td>                        
                    </tr>
                </table>
            </td>
            <td style="width: 80%; border-right: #336699 1px solid; vertical-align: top;">
                <table border="0" cellpadding="0" cellspacing="0" class="assign">
                        <caption>发送信息</caption>                      
                            <tr>
                                <td class="title">发信人:</td>
                                <td class="content">
                                    <asp:TextBox ID="txtUNAME" runat="server" CssClass="txt" MaxLength="50" Rows="3" TextMode="SingleLine" Enabled="false"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvUNAME" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtUNAME" Enabled="False"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">主题:</td>
                                <td class="content">
                                    <asp:TextBox ID="txtSUBJECTS" runat="server" CssClass="txt txt90" MaxLength="500" Rows="3" TextMode="SingleLine" style="width: 75%;"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvSUBJECTS" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtSUBJECTS" Enabled="False"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">消息内容:</td>
                                <td class="content">
                                    <asp:TextBox ID="txtBODYS" runat="server" CssClass="txt txt90" MaxLength="500" Rows="5" TextMode="MultiLine" style="width: 75%; height:200px;"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvBODYS" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtBODYS" Enabled="False"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="title">附件:</td>
                                <td class="content">
                                    <asp:FileUpload ID="ImportFile" runat="server" size="50" />&nbsp;
                                    <asp:Button ID="btnUpload" runat="server" Text="上传" CommandName="btnUpload" CausesValidation="False" OnClick="btnUpload_Click" />
                                    <asp:Label ID="lblFILENAME" runat="server"></asp:Label>
                                    <asp:TextBox ID="txtFILENAME" runat="server" CssClass="txt" style="display: none; " Rows="3" TextMode="SingleLine"></asp:TextBox>
                            </td>
                            </tr>          
                </table>
                <div style="width: 100%">
                <div class="btndiv">
                    <span class="btnspan">
                        <asp:Button ID="btnOK" runat="server" Text="确定" CommandName="Save" CssClass="btn title_qd" OnClick="btnOK_Click" /></span> 
                    <span class="btnspan">
                        <input id="btnCancel" runat="server" type="button" value="返回" class="btn title_fh" />
                    </span>                    
                </div>
                </div>
            </td>
        </tr>
    </table>
    </div>   
    </div>
    </form>
</body>
</html>
